package com.schoolET.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.schoolET.entity.GoodsType;
import com.schoolET.entity.dto.GoodsTypeInfoDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

/**
 * <p>
 * 商品类型 Mapper 接口
 * </p>
 *
 * @author lin
 * @since 2024-06-04
 */
@Mapper
public interface GoodsTypeMapper extends BaseMapper<GoodsType> {

    @Select("select * from goods_type where flag = 0")
    Page<GoodsTypeInfoDTO> selectGoodsType(Page<?> page);

    @Select("select * from goods_type where flag = 0")
    List<GoodsTypeInfoDTO> selectAllGoodsType();


}
